<?php

/**
 * @author Vince Loremia 
 * @copyright 2008
 */

class ShowPage extends Zend_Db_Table
{
	private $db;
    
    public function __construct()
    {
        $this->db= Zend_Registry::get('db');
    }
    public function showPages($groupId)
    {
       
    	$select = new Zend_Db_Select($this->db);
        $select ->from ('page')
        		->where('group_id = ?', $groupId);
        $stmt = $select->query();
        $result = $stmt->fetchAll();
        return $result;
   }
}


?>